import { ReactNode } from "react";

export interface AxCardListProps {
    /** 标题信息
     * @param title = {
                desc: '描述信息',
                links: [{
                    text: '文档信息',
                    src: '文档信息链接'
                }],
                extra: {
                    src: '右侧图片链接，默认值：https://gw.alipayobjects.com/zos/rmsportal/RzwpdLnhmvDJToTdfDPe.png',
                }
            }
     */
    title?: any;
    /** 数据
     * @param data = [{
                id: 1,
                icon: 'import',
                title: '导入学费',
                desc: '导入描述',
                actions: [{
                    text: '下载导入模板',
                    click: () => {},
                }],
            }]
     */
    data: any[];
    showAction?: boolean;
    cardStyle?: any;
    withPageHeaderWrapper?: boolean;
    span?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
}

export interface AxCardListBxProps {
    data: AxCardListBxDataProps[];
    showAction?: boolean;
    span?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
    descRows?: number;
}
export interface AxCardListBxDataProps {
    id: any;
    title?: ReactNode;
    icon?: ReactNode;
    desc?: ReactNode;
    click?: Function;
    span?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
    actions?: React.ReactNode[];
}